﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RoutingDaemon.ServerInterface.Commands
{
    abstract class DaemonCommandBase
    {
        public DaemonCommandBase(string[] parameters)
        {
            if (parameters.Length == 0 || parameters[0].ToLower() != this.CommandName().ToLower())
            {
                throw new InvalidOperationException();
            }
        }

        public abstract string CommandName();

        public abstract string ExecuteCommand();
    }
}
